package org.cuit.epoch.seon.example;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-13
 */
public class Client {
    public static void main(String[] args) {
        Originator o = new Originator();

        o.setState("user seon online");
        o.show();

        Caretaker c  = new Caretaker();
        c.setMemento(o.createMemento());

        o.setState("user seon offline");
        o.show();

        o.restoreMemento(c.getMemento());
        o.show();
    }
}
